import request from "@/utils/request";

// 查询【请填写功能名称】列表
export function listBzjtable(query) {
  return request({
    url: "/system/bzjtable/list",
    method: "get",
    params: query,
  });
}

// 查询保证金没收列表
export function forfeitureOfDeposit(query) {
  return request({
    url: "/confiscate/forfeitureOfDeposit/list",
    method: "get",
    params: query,
  });
}


//回执查询
export function listBzjhzList(query) {
  return request({
    url: "/system/bzjtable/hzList",
    method: "get",
    params: query,
  });
}

// 查询【请填写功能名称】详细
export function getBzjtable(XH) {
  return request({
    url: "/system/bzjtable/" + XH,
    method: "get",
  });
}

// 新增【请填写功能名称】
export function addBzjtable(data) {
  return request({
    url: "/system/bzjtable",
    method: "post",
    data: data,
  });
}
// 下载
export function downLoadFile(query) {
  return request({
    url: "/confiscate/forfeitureOfDeposit/downLoadFile",
    method: "get",
    headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
    params: query,
    responseType: "blob",
  });
}
// 收取审核
export function sqsh(data) {
  return request({
    url: "/system/bzjtable/sqsh",
    method: "post",
    data: data,
  });
}
// 新增没收【请填写功能名称】
export function updateMsshzt(data) {
  return request({
    url: "/confiscate/forfeitureOfDeposit/updateMsshzt",
    method: "post",
    data: data,
  });
}

// 性质
export function addAjxzTree(data) {
  return request({
    url: "/system/caseNature/treeList",
    method: "post",
    data: data,
  });
}

// 修改【请填写功能名称】
export function updateBzjtable(data) {
  return request({
    url: "/system/bzjtable",
    method: "put",
    data: data,
  });
}

// 删除【请填写功能名称】
export function delBzjtable(XH) {
  return request({
    url: "/system/bzjtable/" + XH,
    method: "delete",
  });
}

// 审核通过
export function mssh(data) {
  return request({
    url: "/confiscate/forfeitureOfDeposit/mssh",
    method: "post",
    data: data,
  });
}
// 审核退回
export function shBack(data) {
  return request({
    url: "/confiscate/forfeitureOfDeposit/shBack",
    method: "post",
    data: data,
  });
}

//没收审核
export function selectMsshList(query) {
  return request({
    url: "/confiscate/forfeitureOfDeposit/msshList",
    method: "get",
    params: query,
  });
}

//没收财务审核
export function selectMscwshList(query) {
  return request({
    url: "/confiscate/forfeitureOfDeposit/mscwshList",
    method: "get",
    params: query,
  });
}

//没收回执
export function selectMshzList(query) {
  return request({
    url: "/confiscate/forfeitureOfDeposit/mshzList",
    method: "get",
    params: query,
  });
}

// 修改【请填写功能名称】
export function updateMssh(data) {
  return request({
    url: "/confiscate/forfeitureOfDeposit/updateMsshzt",
    method: "post",
    data: data,
  });
}

//没收业务办结
export function Ywbj(query) {
  return request({
    url: "/confiscate/forfeitureOfDeposit/Ywbj",
    method: "get",
    params: query,
  });
}
// ------------------------------------
// 查询退还列表
export function backToPersonList(query) {
  return request({
    url: "/confiscate/backToPerson/list",
    method: "get",
    params: query,
  });
}
// 查询退还审核列表
export function thshList(query) {
  return request({
    url: "/confiscate/backToPerson/thshList",
    method: "get",
    params: query,
  });
}

// 查询退还回执列表
export function thhzList(query) {
  return request({
    url: "/confiscate/backToPerson/thhzList",
    method: "get",
    params: query,
  });
}

// 查询退还财务审核列表
export function thcwshList(query) {
  return request({
    url: "/confiscate/backToPerson/thcwshList",
    method: "get",
    params: query,
  });
}
// 退还业务办结
export function ThYwbj(query) {
  return request({
    url: "/confiscate/backToPerson/ThYwbj",
    method: "get",
    params: query,
  });
}


//退还提交
export function updateThshzt(data) {
  return request({
    url: "/confiscate/backToPerson/updateThshzt",
    method: "post",
    data: data,
  });
}

//退还审计通过
export function thsh(data) {
  return request({
    url: "/confiscate/backToPerson/thsh",
    method: "post",
    data: data,
  });
}
//退还审计不通过
export function shBackbtg(data) {
  return request({
    url: "/confiscate/backToPerson/shBack",
    method: "post",
    data: data,
  });
}


//----------------------首页
//查询金额总数
export function getAmount(query) {
  return request({
    url: "/sys/index/getAmount",
    method: "GET",
    params: query,
  });
}
export function overdueWarning(query) {
  return request({
    url: "/system/overdueWarning/list",
    method: "GET",
    params: query,
  });
}



//根据办案单位查询金额总数
export function getAmountGroupByOrg(query) {
  return request({
    url: "/sys/index/getAmountGroupByOrg",
    method: "GET",
    params: query,
  });
}

//查询没收饼图
export function getMsBing(query) {
  return request({
    url: "/sys/index/getMsBing",
    method: "GET",
    params: query,
  });
}

//查询退回饼图
export function getThBing(query) {
  return request({
    url: "/sys/index/getThBing",
    method: "GET",
    params: query,
  });
}
//查询折线图和柱状图
export function getSevenDayJe(query) {
  return request({
    url: "/sys/index/getSevenDayJe",
    method: "GET",
    params: query,
  });
}
//查询今日状态
export function getJrje(query) {
  return request({
    url: "/sys/index/getJrje",
    method: "GET",
    params: query,
  });
}
//查看附件列表
export function getFileTableList(query) {
  return request({
    url: "/confiscate/forfeitureOfDeposit/getFileTableList",
    method: "GET",
    params: query,
  });
}
import { getToken } from '@/utils/auth'
//查看附件列表
export function uploadMsFile(query) {
  return request({
    url: "/confiscate/forfeitureOfDeposit/uploadMsFile",
    method: "post",
    headers: {
      Authorization: "Bearer " + getToken()
    },
    responseType: 'blob', //不可省，非常重要

    data: query,
  });
}
export function getFjList(query) {
  return request({
    url: "/confiscate/forfeitureOfDeposit/fjList",
    method: "GET",
    params: query,
  });
}


//汇总查询
export function getHzReoprtList(query) {
  return request({
    url: "/system/report/sumList",
    method: "GET",
    params: query,
  });
}


//保障金查询
export function getAllBzjList(query) {
  return request({
    url: "/system/report/reportList",
    method: "GET",
    params: query,
  });
}

// 查询开户行列表
export function listBasic(query) {
  return request({
    url: '/system/basic/list',
    method: 'get',
    params: query
  })
}

// 查询案件性质列表
export function getCaseNature(query) {
  return request({
    url: '/system/caseNature/getTreeList',
    method: 'get',
    params: query
  })
}
// 新增案件性质列表
export function insertCaseNature(data) {
  return request({
    url: '/system/caseNature/insertCaseNature',
    method: 'post',
    data: data})
}
// 删除案件性质列表
export function delectCaseNature(data) {
  return request({
    url: '/system/caseNature/deleteCaseNature/'+ data,
    method: 'delete'
  })
}
// 修改案件性质列表
export function updateCaseNature(data) {
  return request({
    url: '/system/caseNature/updateCaseNature',
    method: 'put',
    data: data
  })
}
// 修改
export function getIdDetail(id) {
  return request({
    url: `/system/bzjtable/${id}`,
    method: 'get'
  })
}
// 查看流程
export function getListByXhDetail(xh,lb) {
  return request({
    url: `/case/flow/listByXh/${xh}/${lb}`,
    method: 'get'
  })
}
// 查询退还详情
export function getBackToPerson(xh) {
  return request({
    url: `/confiscate/backToPerson/${xh}`,
    method: 'get'
  })
}
// 查询没收详情
export function getForfeitureOfDeposit(xh) {
  return request({
    url: `/confiscate/forfeitureOfDeposit/${xh}`,
    method: 'get'
  })
}

//查询未缴费人员列表
export function UnpaidList(query) {
  return request({
    url: '/Banking/UnpaidList',
    method: 'get',
    params: query
  })
}

//保证金收款
export function collection(data) {
  return request({
    url: '/Banking/collection',
    method: 'post',
    data: data
  })
}

//查询保证金划拨列表
export function Transfer(query) {
  return request({
    url: '/Banking/Transfer',
    method: 'get',
    params:query
  })
}

//保证金划拨
export function updateTransfer(data) {
  return request({
    url: '/Banking/updateTransfer',
    method: 'post',
    data: data
  })
}


//保证金没收执行列表
export function bankSeizurelist(query) {
  return request({
    url: '/Banking/bankSeizurelist',
    method: 'get',
    params:query
  })
}

//保证金没收执行
export function bankSeizure(data) {
  return request({
    url: '/Banking/bankSeizure',
    method: 'post',
    data: data
  })
}

//保证金退回执行列表
export function bankRefundlist(query) {
  return request({
    url: '/Banking/bankRefundlist',
    method: 'get',
    params:query
  })
}

//保证金退还执行
export function bankRefund(data) {
  return request({
    url: '/Banking/bankRefund',
    method: 'post',
    data: data
  })
}

//收款汇总
export function skReport(query) {
  return request({
    url: "/system/report/skReport",
    method: "GET",
    params: query,
  });
}

//没收汇总
export function msReport(query) {
  return request({
    url: "/system/report/msReport",
    method: "GET",
    params: query,
  });
}

//退款汇总
export function thReport(query) {
  return request({
    url: "/system/report/thReport",
    method: "GET",
    params: query,
  });
}

//查询可新增扣押款列表
export function selectBzj(query) {
  return request({
    url: "/seizure/selectBzj",
    method: "GET",
    params: query,
  });
}

//新增扣押款
export function addSeizure(data) {
  return request({
    url: "/seizure/addSeizure",
    method: "post",
    data: data,
  });
}
//新增扣押款
export function insertKywp(data) {
  return request({
    url: "/seizure/insertKywp",
    method: "post",
    data: data,
  });
}

//查询押款列表
export function kyList(query) {
  return request({
    url: "/seizure/kyList",
    method: "GET",
    params: query,
  });
}
//查询押款列表
export function kywpList(query) {
  return request({
    url: "/seizure/kywpList",
    method: "GET",
    params: query,
  });
}
//修改押款列表
export function updKy(data) {
  return request({
    url: "/seizure/updKy",
    method: "post",
    data: data,
  });
}
//删除押款列表
export function delKy(ky_bhs) {
  return request({
    url: "/seizure/" + ky_bhs,
    method: "delete",
  });
}
//新增扣押案件
export function insertKyajTable(query) {
  return request({
    url: "/seizure/insertKyajTable",
    method: "GET",
    params: query,
  });
}
//扣押款划拨列表
export function hbList(query) {
  return request({
    url: "/seizure/hbList",
    method: "GET",
    params: query,
  });
}
//扣押款划拨
export function hbSeizure(data) {
  return request({
    url: "/seizure/hbSeizure",
    method: "post",
    data: data,
  });
}
//退还审计通过
export function hbsh(data) {
  return request({
    url: "/Banking/hbsh",
    method: "post",
    data: data,
  });
}
//扣押款没收列表
export function msList(query) {
  return request({
    url: "/seizure/msList",
    method: "GET",
    params: query,
  });
}
//扣押款没收
export function msSeizure(data) {
  return request({
    url: "/seizure/msSeizure",
    method: "post",
    data: data,
  });
}
//扣押款退还列表
export function thList(query) {
  return request({
    url: "/seizure/thList",
    method: "GET",
    params: query,
  });
}
//扣押款退还
export function thSeizure(data) {
  return request({
    url: "/seizure/thSeizure",
    method: "post",
    data: data,
  });
}

// 扣押款收款审核通过
export function kysh(data) {
  return request({
    url: "/seizure/kysh",
    method: "post",
    data: data,
  });
}
// 扣押款没收审核通过
export function kymssh(data) {
  return request({
    url: "/seizure/kymssh",
    method: "post",
    data: data,
  });
}
// 扣押款退还审核通过
export function kythsh(data) {
  return request({
    url: "/seizure/kythsh",
    method: "post",
    data: data,
  });
}
// 扣押款划拨审核通过
export function kyhbsh(data) {
  return request({
    url: "/seizure/kyhbsh",
    method: "post",
    data: data,
  });
}